@echo off

cd ..

pyinstaller -F -w qtzz.py
pyinstaller -F -w qyfr.py
pyinstaller -F -w zrr.py

mkdir dist\inputdata
mkdir dist\extScript
@echo mkdir dist\readme
@echo mkdir dist\outputdata\OutPic
@echo mkdir dist\outputdata\DataSet

copy /y inputdata\*.* dist\inputdata\
copy /y readme\*.* dist\readme\
copy /y IEDriverServer.exe dist\
copy /y openDiagFrame.exe dist\
copy /y openDiagPrint.exe dist\
copy /y extScript\DangAnNO.txt dist\extScript\
copy /y extScript\UserNo.txt dist\extScript\

del /s /f *.spec

set winrar="C:\Program Files\WinRAR"
set distpath="dist\"
cd %distpath%

%winrar%\WinRAR.exe a BDCAutoTest_X64_%date:~0,4%%date:~5,2%%date:~8,2%.zip -s -r *

copy /y BDCAutoTest_X64_%date:~0,4%%date:~5,2%%date:~8,2%.zip ..\SetupFactory\

cd ..
rd /s /q build,dist,__pycache__,extendScript\__pycache__





